<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ncduc
 * Date: 6/4/13
 * Time: 5:42 PM
 * To change this template use File | Settings | File Templates.
 */
include_once("SmartyML.php");
/*Localization*/
$lang;
if(!empty($_GET['lang']))
{
    $lang = $_GET['lang'];
    setcookie("lang_vinastemcelllab", $lang, time()+3600*24*7);
}
else
{
    if(empty($_COOKIE['lang_vinastemcelllab']))
    {
        setcookie("lang_vinastemcelllab", "vi", time()+3600*24*7);
    }
    $lang = $_COOKIE['lang_vinastemcelllab'];
}
//error_reporting(0);
$smarty = new smartyML($lang);
$smarty->setConfigDir($_SERVER['DOCUMENT_ROOT'].'/oms/configs/');
$smarty->setTemplateDir($_SERVER['DOCUMENT_ROOT'].'/oms/templates');
$smarty->configLoad("db.conf","Database");